<template>
	<view class="examine-wrap">
		<view class="examin-img">
			<image src="../../static/image/underReview.png" v-if="examineNum==1"></image>
			<image src="../../static/image/auditSuccessful.svg" v-else-if="examineNum==2"></image>
			<image src="../../static/image/auditFailure.svg" v-else></image>
		</view>
		<view class="examin-txt">
			<text class="u-font-32" style="color:#333333" v-if="examineNum==2">审核中，请您耐心等待…</text>
			<text class="u-font-32" style="color:#333333" v-else-if="examineNum==1">已通过认证</text>
			<text class="u-font-32" style="color:#FD3636" v-else>认证失败，请上传房本由物业人员审核</text>
		</view>
		<view class="examin-btn examin-btn-sty" v-if="examineNum==3">
			<u-button type="error" shape="circle" @click="toUpload">上传房本</u-button>
		</view>
		<view class="examin-btn" >
			<u-button shape="circle" @click="toIndex">返回首页</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				examineNum: 1,
			}
		},
		onShow(){
			this.examineNum=this.$Route.query.examineNum
		},
		methods:{
			// 跳转至首页
			toIndex(){
			  console.log("测试")

        uni.reLaunch({
          url: '/pages/index/newIndex'
        });


      },
			// 跳转至认证页面
			authentication(){
				this.$Router.replaceAll({
					path:'/pages/address/address'
				})
			},
			// 上传房本
			toUpload(){
				this.$Router.push({
					path:'/pages/uploadRoon/uploadRoon',
					query:{
						room_id:this.$Route.query.room_id,
						type:1
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.examine-wrap {
		width: 100vw;
		height: 100vh;
		overflow: hidden;
		.examin-img {
			margin: 120rpx 216rpx 0;

			image {
				width: 300rpx;
				height: 230rpx;
			}
		}

		.examin-txt {
			width: 350rpx;
			height: 88rpx;
			line-height: 44rpx;
			text-align: center;
			margin: 50rpx auto;
		}

		.examin-btn {
			width: 570rpx;
			height: 70rpx;
			margin: 60rpx auto 0;
		}
	}
</style>
